package com.dingwen.treasure.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 分页dto
 *
 * @author dingwen
 * @date 2022/11/08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageDto implements Serializable {

    /**
     * 当前页
     */
    @NotNull(message = "当前页不能为空")
    private Integer current;

    /**
     * 页面大小
     */
    @NotNull(message = "页面大小不能为空")
    private Integer pageSize;

    private static final long serialVersionUID = -4528099025942573594L;
}
